The stateID attribute - 2 states plus Error identifies the state whose attributes are defined in the state element. The stateId attribute is the first attribute in the state element.
The momentaryButton, maintainedButton, and latchedButton graphic object elements contain this attribute.
FactoryTalk View equivalent: State